<?php if ($this->pageCount): ?> 
<div class="pagination pagination-centered">
    <ul>
        <li<?php echo (isset($this->previous) ? '' : ' class="disabled"'); ?>>
            <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&laquo;</a>
        </li>
        <?php foreach ($this->pagesInRange as $page): ?> 
        <li<?php echo ($page == $this->current ? ' class="active"' : ''); ?>>
            <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a>
        </li>
        <?php endforeach; ?> 
        <li<?php echo (isset($this->next) ? '' : ' class="disabled"'); ?>>
            <a href="<?php echo $this->url(array('page' => $this->next)); ?>">&raquo;</a>
        </li>
    </ul>
</div>
<?php endif; ?> 